//
//  HYModelConfig.m
//  HaiYue
//
//  Created by skyline on 2018/6/20.
//  Copyright © 2018年 skyline. All rights reserved.
//

#import "HYModelConfig.h"

@implementation HYModelConfig
+ (void)load
{
    
    
    [NSClassFromString(@"HYUserModel") mj_setupReplacedKeyFromPropertyName:^NSDictionary *{
        return @{@"account":@"data.account",
                 @"accountid":@"data.accountid",
                 @"accesstoken":@"data.accesstoken",
                 @"nickname":@"data.nickname",
                 @"phone":@"data.phone",
                 @"photo":@"data.photo",
                 @"balance":@"data.balance",
                 @"area":@"data.area",
                 @"consignee":@"data.consignee",
                 @"telephone":@"data.telephone",
                 @"address":@"data.address",
                 @"usepaywordk":@"data.usepaywordk",
                 @"viplevel":@"data.viplevel",
                 @"vipscore":@"data.vipscore",
                 };
    }];
    //end
    
    
    //HYStoreListModel
    [NSClassFromString(@"HYStoreListModel") mj_setupObjectClassInArray:^NSDictionary *{
        return @{@"list":@"HYGoodModel"};
    }];
    //end
    
    //HYGameListModel
    [NSClassFromString(@"HYGameListModel") mj_setupReplacedKeyFromPropertyName:^NSDictionary *{
        return @{@"tabgames":@"map.tabgames",
                 @"topgames":@"map.topgames",
                 @"bookgames":@"map.bookgames"};
    }];
    
    [NSClassFromString(@"HYGameListModel") mj_setupObjectClassInArray:^NSDictionary *{
        return @{@"tabgames":@"HYOnlineGameModel",
                 @"topgames":@"HYTopGameModel",
                 @"bookgames":@"HYBookGameModel"};
    }];
    //end
    
    //HYCommentList
    [NSClassFromString(@"HYCommentList") mj_setupObjectClassInArray:^NSDictionary *{
        return @{@"list":@"HYCommentModel"};
    }];
    //end
    
    
    //HYCommentModel
    [NSClassFromString(@"HYCommentModel") mj_setupObjectClassInArray:^NSDictionary *{
        return @{@"replydatas":@"HYReplyModel"};
    }];
    //end
    
    //HYReplyList
    [NSClassFromString(@"HYReplyList") mj_setupObjectClassInArray:^NSDictionary *{
        return @{@"list":@"HYReplyModel"};
    }];
    //end
    
    //HYKaifuList
    [NSClassFromString(@"HYKaifuList") mj_setupObjectClassInArray:^NSDictionary *{
        return @{@"list":@"HYKaifuModel"};
    }];
    //end
    
    //HYKaifuModel
    [NSClassFromString(@"HYKaifuModel") mj_setupReplacedKeyFromPropertyName:^NSDictionary *{
        return @{@"ID":@"id"};
    }];
    //end
    
    //HYGameTypeList
    [NSClassFromString(@"HYGameTypeList") mj_setupObjectClassInArray:^NSDictionary *{
        return @{@"list":@"HYGameTypeModel"};
    }];
    //end
    
    //HYGameTypeModel
    [NSClassFromString(@"HYGameTypeModel") mj_setupReplacedKeyFromPropertyName:^NSDictionary *{
        return @{@"prop":@"property"};
    }];
    //end
    
    //HYSearchList
    [NSClassFromString(@"HYSearchList") mj_setupObjectClassInArray:^NSDictionary *{
        return @{@"games":@"HYOnlineGameModel"};
    }];
  
    [NSClassFromString(@"HYSearchList") mj_setupReplacedKeyFromPropertyName:^NSDictionary *{
        return @{@"games":@"map.games",
                 @"grids":@"map.grids"};
    }];
    //end
//    
//    //HYGameDetailModel
//    [NSClassFromString(@"HYGameDetailModel") mj_setupObjectClassInArray:^NSDictionary *{
//        return @{@"serverlist":@"HYGameDetailServerModel"};
//    }];
//
  
        //HYGameDetailServerModel
    [NSClassFromString(@"HYGameDetailServerModel") mj_setupReplacedKeyFromPropertyName:^NSDictionary *{
        return @{@"ID":@"id"};
    }];
    //end
    
   
}
@end
